<%@ page import="com.ecable.daoImpl.*"%>
<%@page import="java.util.Vector"%>
<%@page import="java.util.Iterator"%>
<%@ page errorPage="UserExceptionHandler.jsp"%>
<%@page import="com.ecable.bean.ComplaintsTO"%>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head>

		<style type="text/css">
.Title {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}

.Title1 {
	font-family: Verdana;
	font-weight: bold;
	font-size: 8pt
}
</style>

		<script language="JavaScript" src="scripts/gen_validatorv31.js"
			type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript"
			src="scripts/ts_picker.js"></script>
		<script language="JavaScript1.1" src="scripts/pass.js">


</script>
		<script type="text/javascript" src="scripts/image.js"> </script>
		<script type="text/javascript" src="scripts/general.js"> </script>
		<script type="text/javascript" src="scripts/adi.js"> </scri pt>
		<script type="text/javascript" src="scripts/form_validation.js"> </script>

		<script language="JavaScript" src="images/javascripts.js"></script>
		<script language="JavaScript" src="images/pop-closeup.js"></script>
	</head>
	<body>
		<jsp:include page="Header.jsp"></jsp:include>


		<%
			String status = (String) request.getAttribute("status");

			//Profile aprofile = new ProfileDAO().getProfile(path, user);
		%>
		<center>
			<b>View your Comlplaints Details</b>

			<table border=1>
				<tr>
					<th>
						ComplaintDescription

					</th>

					<th>
						Complaint
						<br>
						Date
					</th>
					<th>
						Complaint
						<br>
						Reply
					</th>
					<th>
						Complaint
						<br>
						status
					</th>
				</tr>
				<%
					Vector c = (Vector) request.getAttribute("vcmp");
					Iterator it = c.listIterator();
					while (it.hasNext()) {
						ComplaintsTO cmp = (ComplaintsTO) it.next();
				%>
				<tr>
					<td>
						<%=cmp.getCmpdiscription()%>
					</td>
					<td>
						<%=cmp.getCmpdate()%>
					</td>
					<td>
						<%=cmp.getCmpreply()%>
					</td>
					<td>
						<%=cmp.getCmpstatus()%>
					</td>
					<td>
						<a
							href="./DeleteCustomerComplaint?userid=<%=session.getAttribute("userid")%>&cmpid=<%=cmp.getCmpid()%>"><b>Delete</b>
						</a>
					</td>
				</tr>
				<%
					}
				%>
			</table>
		</center>
		<br><br><br><br><br><br><br><br><br><br><br>
		<jsp:include page="Footer.jsp"></jsp:include>
	</body>
</html>